package com.openbravo.data.gui;

import com.openbravo.data.loader.IKeyed;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class ListKeyed<K extends IKeyed> extends ArrayList<K>
{
  public ListKeyed(List<K> paramList)
  {
    addAll(paramList);
  }

  public K get(Object paramObject)
  {
    Iterator localIterator = iterator();
    while (localIterator.hasNext())
    {
      IKeyed localIKeyed = (IKeyed)localIterator.next();
      if (((paramObject == null) && (localIKeyed.getKey() == null)) || ((paramObject != null) && (paramObject.equals(localIKeyed.getKey()))))
        return (K) localIKeyed;//ati add case to k
    }
    return null;
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.data.gui.ListKeyed
 * JD-Core Version:    0.6.0
 */